<html>
    <head>
        <link rel="stylesheet" type="text/css" href="css/style.css" />
    </head>
    <body>       
        <?php
        require_once("conn.php");

        $year = $_GET['year'];
        $month = $_GET['month'];
        $age = $_GET['age'];

        if (isset($year) && isset($month) && isset($age)) {
            $sql = "SELECT * FROM t_pack WHERE year = " . $year . " AND month = " . $month . " AND age = " . $age;
            $db = new DBC();
            $data = $db->fetchData($sql);
            ?> 
            <a href="packStat.php">HOME</a> <?php echo $year; ?>年 <?php echo $month; ?>月 <?php echo $age; ?>岁
            <p></p>
            <div class="feat_prod_box_details" style="text-align:center">

                <table class="cart_table">
                    <tr class="cart_title">
                        <td>Item pic</td>
                        <td>Jewel name</td>
                        <td>图片地址</td>
                        <td>声音地址</td>
                        <td>详情</td>
                        <td>修改</td>
                    </tr>
                    <?php
                    foreach ($data as $pack) {
                        ?>
                        <tr>
                            <td><a href="packDetail.php?id=<?php echo $pack['packid']; ?>"><img src="<?php echo $pack['imageURL']; ?>" alt="" title="" border="0" class="cart_thumb" width="75" height="75" /></a></td>
                            <td><?php echo $pack['name']; ?></td>
                            <td><?php echo $pack['imageURL']; ?></td>
                            <td><?php echo $pack['soundURL']; ?></td>
                            <td><a href="packDetail.php?id=<?php echo $pack['packid']; ?>" class="more">- 详情 -</a></td>
                            <td><a href="packEdit.php?id=<?php echo $pack['packid']; ?>" class="more">- 修改 -</a></td>  
                        </tr>  
                        <?php
                    }
                    ?>            
                </table>
            </div>
        <?php }
        ?>
    </body>
</html>